package com.bdqn.mapper;

import com.bdqn.pojo.Authority;

import java.util.List;

public interface AuthorityMapper {

    /**
     * 权限信息搜索查询
     * @param roleId
     * @return
     */
    public List<Authority> findListByRoleId(Long roleId);

    /**
     * 权限插入操作
     * @param authority
     * @return
     */
    public int add(Authority authority);

    /**
     * 删除权限信息
     * @param roleId
     * @return
     */
    public int deleteByRoleId(Long roleId);

}
